home *** CD-ROM | disk | FTP | other *** search
/ Belgian Amiga Club - ADF Collection / BS1 part 27.zip / BS1 part 27 / ImageMaster_d3.adf / piarc.lzh.parta / BToT.rxwp < prev    next >
Text File  |  1992-10-27  |  604b  |  27 lines

  1. /* Test rexx script to fill wipe buffer */
  2.  
  3. parse arg cframe mframe
  4.  
  5. options;
  6. address;
  7.  
  8.   if mframe = 0 then do
  9.       call open(fhandle,'ram:IM_WIPE.tmp2','write');      /* open the file */
  10.       junk = writeln(fhandle, 0);
  11.       junk = writeln(fhandle, 0);
  12.       junk = writeln(fhandle, 1);
  13.       junk = writeln(fhandle, 0);
  14.       junk = writeln(fhandle, 0);
  15.       call close(fhandle);                     /* close the file    */
  16.     end;
  17.   else do
  18.     fp = cframe / mframe;
  19.     fp1 = 1 - fp;
  20.     address("IM_WIPER");
  21.     'displace 0,0,0,'||fp1
  22.     'box 0,'||fp1||',1,1'
  23.     'close'
  24.     end;
  25.  
  26.   exit 0;
  27.